package com.kehutong.contact.enums;

import org.coraframework.util.HashID;

/**
 * @author liujinwang
 * description:
 */
public enum FollowUpType implements HashID {
    DATA("1", "资料"),
    FOLLOW_UP("2", "跟进"),
    OTHERS("3", "其他");

    private final String id;
    private final String desc;

    private FollowUpType(String id, String desc) {
        this.id = id;
        this.desc = desc;
    }

    public static FollowUpType get(String desc) {
        FollowUpType[] followUpTypes = values();
        for (FollowUpType followUpType : followUpTypes) {
            if (followUpType.getDesc().equals(desc)) {
                return followUpType;
            }
        }
        return null;
    }

    @Override
    public String getId() {
        return id;
    }


    @Override
    public String getDesc() {
        return desc;
    }

}
